package cn.kys.modules.system.service.dto;

import cn.kys.common.annotation.EnableKysQuery;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

/**功能描述：用户查询类
 * @Auther:http://www.kys.cn
 * @Date:2020/1/4
 * @Description:cn.kys.modules.system.service.dto
 * @version:1.0
 */
@Data
public class UserQueryCriteria implements Serializable {

    @EnableKysQuery
    private Long id;

    @EnableKysQuery(propName = "id", type = EnableKysQuery.Type.IN, joinName = "dept")
    private Set<Long> deptIds;

    @EnableKysQuery(blurry = "email,username,nickName")
    private String blurry;

    @EnableKysQuery
    private Boolean enabled;

    private Long deptId;

    @EnableKysQuery(type = EnableKysQuery.Type.BETWEEN)
    private List<Timestamp> createTime;
}
